package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.nursing.domain.Device;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.ProductDetail;
import com.zzyl.nursing.dto.DeviceDto;
import com.zzyl.nursing.vo.DeviceDetailVo;
import com.zzyl.nursing.vo.ProductVo;

/**
 * 设备Service接口
 * 
 * @author ruoyi
 * @date 2025-07-20
 */
public interface IDeviceService extends IService<Device>
{
    /**
     * 同步产品列表
     * @param device
     */
    void syncProductList(Device device);

    List<ProductVo> allProduct();

    void registerDevice(DeviceDto deviceDto);

    List<Device> selectDeviceList(Device device);

    DeviceDetailVo selectDeviceById(String iotId);

    AjaxResult queryServiceProperties(String iotId);

    void edit(DeviceDto deviceDto);

    void deleteByIotId(String iotId);

    List<ProductDetail> getByProductKey(String productKey);

    List<Long> selectNursingIdsByIotIdWithElder(String iotId);

    List<Long> selectNursingIdsByIotIdWithBed(String iotId);
}
